package face.pay.api.alipay.api;

import face.pay.api.payter.AliPayTerminal;
import face.pay.util.ResultMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/aliQrpay/api/")
public class ApiAliQrPay {

    @Autowired
    AliPayTerminal aliPayTerminal;

    @RequestMapping("/payorder")
    @ResponseBody
    public ResultMessage payface(@RequestBody String dataJson){

        return aliPayTerminal.qrPay(dataJson);
    }

}
